package 通过XML形式配置AOP;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		System.out.println(MyCaculatorInterFace.class);
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("AOP_XML.xml");
		MyCaculatorInterFace cauculatorImp = (MyCaculatorInterFace)applicationContext.getBean("cauculatorImp");
		System.out.println(MyCaculatorInterFace.class);
		cauculatorImp.add(1, 2);
		cauculatorImp.sub(1, 1);
		cauculatorImp.mul(9, 9);
	}
}
